#ifndef _GC_MYSQL_READER_H_
#define _GC_MYSQL_READER_H_

#include <string>
#include <vector>
#include <map>
#include <cstdlib>
#include <mysql++/connection.h>
#include <mysql++/query.h>
#include <mysql++/result.h>
#include <mysql++/row.h>
#include "Util.h"
#include "Reader.h"

using namespace std;
using namespace mysqlpp;


namespace great_config {

	class MySQLReader : public Reader {
		public:
			MySQLReader(const string &config);

			~MySQLReader ();

			map<string, string> &getConfig(map<string, string> &map);
		private:
			/**
			 * <host>:<port>:<name>:<user>:<pass>
			 **/
			vector<string> _dbConfig;

	};
}

#endif
